[paket]
tanim   = Dinamik bir döşeme yolu düzenleyicisi.
paketci = Cihan_Alkan
grup    = kütüphane
url     = https://github.com/ifreund/river

[gerek]
derleme =  zig scdoc
calisma =

[kaynak]
git   = https://github.com/ifreund/river
git   = https://github.com/ifreund/zig-pixman
git   = https://github.com/ifreund/zig-wayland
git   = https://github.com/swaywm/zig-wlroots
git   = https://github.com/ifreund/zig-xkbcommon
1 = https://aur.archlinux.org/cgit/aur.git/plain/libc.patch?h=river-git

[sha256]
#1       = c9e9f4f6d2f526d0b2886daf3ec37e64831773059aa669fb98a88522a1626bdb

[derle]
betik = cd river
betik = git submodule init
betik = git config submodule.deps/zig-pixman.url "${SRC}/zig-pixman"
betik = git config submodule.deps/zig-wayland.url "${SRC}/zig-wayland"
betik = git config submodule.deps/zig-wlroots.url "${SRC}/zig-wlroots"
betik = git config submodule.deps/zig-xkbcommon.url "${SRC}/zig-xkbcommon"
betik = git submodule update
betik = zig libc > libc-paths
betik = patch -p1 < /sources/libc.patch?h=river-git
betik = zig build --search-prefix "/usr" -Dtarget=x86_64-linux-gnu -Drelease-safe -Dxwayland -Dman-pages

[pakur]
betik = cd river
betik = DESTDIR="${PKG}" zig build --prefix "/usr" --search-prefix "/usr" -Dtarget=x86_64-linux-gnu -Drelease-safe -Dxwayland -Dman-pages install
